<template>
  <div>
    <common-card
      title="累计订单量"
      value="2,005,399">
      <template>
        <v-chart :options="getOptions()"/>
        <!-- <div id="total-order-chart" style="width: 100%; height: 100%"></div>-->
      </template>

      <template v-slot:footer>
        <span>昨日订单量 </span>
        <span class="emphasis">2,000,000</span>
      </template>
    </common-card>
  </div>
</template>

<script>
import CommonCardMixin from '../../mixins/commonCardMixin'

export default {
  mixins: [CommonCardMixin],
  methods: {
    getOptions() {
      return {
        xAxis: {
          type: 'category',
          show: false,
          boundaryGap: false
        },
        yAxis: {
          show: false
        },
        series: {
          type: 'line',
          data: [620, 432, 220, 534, 790, 430, 220, 320, 532, 320, 834, 690, 530, 220, 620],
          areaStyle: {
            color: 'purple'
          },
          smooth: true,
          lineStyle: {
            opacity: 0
          },
          itemStyle: {
            opacity: 0
          }
        },
        grid: {
          left: 0,
          right: 0,
          top: 0,
          bottom: 0
        }
      }
    }
  },
  // mounted() {
  //   const Chartdom = document.getElementById("total-order-chart");
  //   const chart = this.$echarts.init(Chartdom);
  //   chart.setOption()
  // }
}
</script>

<style>
</style>
